import React,{Component} from "react";
import {NavLink} from 'react-router-dom';

export default class MyNaviLink extends Component {
    render() {
        return(
            <NavLink activeClassName="about" style= {{padding:3}} {...this.props}></NavLink>
            // 等同于
            // <NavLink activeClassName="about" style= {{padding:3}} {...this.props}>{this.props.children}</NavLink>
        )
    }
}